import request from '@/utils/request'

export function energyList(data) {
  return request({

    url: '/admin/box/energy/energyList',
    method: 'post',
    data
  })
}
export function addEnergy(data) {
  return request({

    url: '/admin/box/energy/addEnergy',
    method: 'post',
    data
  })
}
export function editEnergy(data) {
  return request({

    url: '/admin/box/energy/editEnergy',
    method: 'post',
    data
  })
}
export function energyDetails(data) {
  return request({
    url: '/admin/box/energy/energyDetails',
    method: 'post',
    data
  })
}
export function delEnergy(data) {
  return request({

    url: '/admin/box/energy/delEnergy',
    method: 'post',
    data
  })
}


// //////
export function heroList(data) {
  return request({

    url: '/admin/box/hero/heroList',
    method: 'post',
    data
  })
}
export function addHero(data) {
  return request({

    url: '/admin/box/hero/addHero',
    method: 'post',
    data
  })
}
export function editHero(data) {
  return request({
    url: '/admin/box/hero/editHero',
    method: 'post',
    data
  })
}

export function delHero(data) {
  return request({
    url: '/admin/box/hero/delHero',
    method: 'post',
    data
  })
}
//////////

// 获取用户能量球
export function getEnergy(data) {
  return request({
    url: "/admin/box/energy/getEnergy",
    method: "post",
    data,
  });
}
// 获取用户能量球纪录
export function giveEnergyLog(data) {
  return request({
    url: "/admin/box/energy/giveEnergyLog",
    method: "post",
    data,
  });
}
// 修改能量球数量
export function giveEnergy(data) {
  return request({
    url: "/admin/box/energy/giveEnergy",
    method: "post",
    data,
  });
}
// 获取用户能量值纪录
export function ksLog(data) {
  return request({
    url: "/admin/box/energy/ksLog",
    method: "post",
    data,
  });
}
// 修改能量值数量
export function giveKsVal(data) {
  return request({
    url: "/admin/box/energy/giveKsVal",
    method: "post",
    data,
  });
}
// 能量球中奖纪录
export function energylog(data) {
  return request({
    url: "/admin/user/energylog",
    method: "post",
    data,
  });
}
